home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Games / flying-6.11 / cannon.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-06-30  |  607 b   |  40 lines

  1. #ifndef _cannon_h
  2. #define _cannon_h
  3.  
  4. #ifndef _real_h
  5. #    include "real.h"
  6. #endif
  7. #ifndef _billard_h
  8. #    include "billard.h"
  9. #endif
  10.  
  11. class Wall;
  12. class Ball;
  13.  
  14. class Cannon : public Billard {
  15.     public:
  16.         static Real TableWidth;
  17.         static Real TableHeight;
  18.         static Real BallRadius;
  19.  
  20.     public:
  21.         Cannon(double dx=TableWidth, double dy=TableHeight);
  22.         virtual ~Cannon();
  23.  
  24.         virtual const Real &GetNormalBallSize() const;
  25.  
  26.         virtual void InitPlayground();
  27.         virtual void DrawBackground() const;
  28.  
  29.     protected:
  30.         ColorId    red_col;
  31.         ColorId    white_col;
  32.         ColorId    yellow_col;
  33.  
  34.     private:
  35.         Ball *w1, *w2;
  36.         Ball *r;
  37. };
  38.  
  39. #endif
  40.